package com.github.taomus.gitoys.test

import com.github.taomus.gitoys.config.ConfigManager
import com.github.taomus.gitoys.config.entity.Config
import com.github.taomus.gitoys.config.entity.FtpConfig
import org.junit.Test

class ConfigTest {
	
	@Test
	def test(){
		var config = new Config();
		var ftp = new FtpConfig();
		ftp.path = "./testftp"
		ftp.username = "aaa"
		ftp.password = "bbb"
		ftp.host = "127.0.0.1"
		ftp.port = 8080
		config.ftp =  ftp	
		ConfigManager.write(config)
	}	
}